<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <!-- node // 节点 -->
    <div>
      <h1>hello</h1>
      <p>this p</p>
    </div>

    <script>
      const div = document.body.childNodes[3];
      // console.log(div.childNodes);
      for (let el of div.childNodes) {
        console.log(el);
      }
      console.log(Array.from(div.childNodes));
      console.log([...div.childNodes]);
    </script>
  </body>
</html>
